package com.wx.fresh.custom.controller;

import com.wx.fresh.common.util.CommonResult;
import com.wx.fresh.custom.vo.stoteVo.InProductStoreVo;
import com.wx.fresh.custom.vo.stoteVo.InStoreRecommendVo;
import com.wx.fresh.custom.vo.stoteVo.OutProductStoreVo;
import com.wx.fresh.custom.vo.stoteVo.OutStoreRecommendVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dshzs月
 * @version 1.0.0
 * @ClassName ProductVo.java
 * @Description TODO
 * @createTime 2022年04月19日 17:08:00
 */
@Api(tags = "C端店铺")
@RestController
@RequestMapping("store")
public class CustomerStoreController {

    @ApiOperation(value = "C端首页店铺推荐", response = InStoreRecommendVo.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "form"),
            @ApiImplicitParam(name = "latitude", value = "维度坐标", required = true, paramType = "form"),
            @ApiImplicitParam(name = "longitude", value = "经度坐标", required = true, paramType = "form")
    })
    @GetMapping("getStoreRecommendById")
    public CommonResult<OutStoreRecommendVo> getStoreRecommendById(@RequestBody InStoreRecommendVo inStoreRecommendVo) {
        return null;
    }

    @ApiOperation(value = "C端产品中的店铺", response = OutProductStoreVo.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "productId", value = "商品ID", required = true, paramType = "form")
    })
    @GetMapping("getProductByStore")
    public CommonResult<OutProductStoreVo> getProductByStore(InProductStoreVo productStoreVo) {
        return null;
    }
}
